﻿using gt.dotnetcore.consolesample.Biz;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using System;
using System.IO;
using System.Text;
using Topshelf;

namespace gt.dotnetcore.consolesample
{
    class Program
    {
        static void Main(string[] args)
        {
            HostFactory.Run(x =>
            {
                x.Service<ServiceRunner>();
                x.SetDescription("gt.dotnetcore.consolesample");
                x.SetDisplayName("gt.dotnetcore.consolesample");
                x.SetServiceName("gt.dotnetcore.consolesample");

                x.StartAutomatically();
            });
        }
    }
}
